

\long\def\TEST{%
\begin{tikzpicture}
    \begin{axis}[
		ybar stacked,
		ymin=0,
		nodes near coords,
		bar width=1,
	]
    \addplot coordinates
        {(0,1) (2,4) (4,1.5)};
    \addplot coordinates
        {(0,1) (2,3) (4,2)};
    \addplot coordinates
        {(0,1) (2,3) (4,3)};
    \end{axis}
\end{tikzpicture}

\begin{tikzpicture}
    \begin{axis}[
		xbar stacked,
		nodes near coords,
		xmin=0,
		bar width=0.5,
	]
    \addplot coordinates
        {(1,0) (2,1) (2,2) (3,3)};
    \addplot coordinates
        {(1,0) (2,1) (2,2) (3,3)};
    \addplot coordinates
        {(1,0) (2,1) (2,2) (3,3)};
    \end{axis}
\end{tikzpicture}
}%
